<div>
	<form method="post" id="resource_form" name="resource_form" >
	<input type="hidden" id="entity.id" name="entity.id"  />
	<input type="hidden" id="entity.parent.id" name="entity.parent.id" value="<#if parent?exists>${parent.id?default('')}</#if>" />
	<input type="hidden" id="entity.parentCode" name="entity.parentCode" value="<#if parent?exists>${parent.keyCode?c}<#else>0</#if>" />
    <table class="form-table" >
        <tr>
            <td>${action.getDatagridTitle('name')}:</td>
            <td><input id="entity.name" name="entity.name" type="text"  class="easyui-validatebox" data-options="required:true,validType:'length[0,64]'"   /></td>
            <td>${action.getDatagridTitle('keyType')}:</td>
            <td><input id="entity.keyType" name="entity.keyType" type="text"  class="easyui-validatebox" data-options="required:true,validType:'length[0,64]'"   /></td>
        </tr>
        <tr>
        	<td>${action.getDatagridTitle('parentCode')}:</td>
        	<td><input value="<#if parent?exists>${parent.name}<#else>ROOT</#if>" disabled="disabled" type="text"  /></td>
        	<td colspan="2" >
        		<table>
	            	<tr>
			            <td>${action.getDatagridTitle('ordinal')}:</td>
			            <td><input id="entity.ordinal" name="entity.ordinal" type="text" class="easyui-numberspinner" value="0" style="width:50px;" /></td>
			            <td>${action.getDatagridTitle('cascading')}:</td>
			            <td>
			            	<input type="radio" name="entity.cascading" value="false" checked="checked" />${action.getProperty('net.esj.background.message','bg.message.radio.no')}
			            	<input type="radio" name="entity.cascading" value="true" />${action.getProperty('net.esj.background.message','bg.message.radio.yes')}
			            </td>
	            	</tr>
	            </table>
        	</td>
        </tr>
        <tr>
            <td>${action.getDatagridTitle('keyValue')}:</td>
            <td colspan="3" ><textarea id="entity.keyValue" name="entity.keyValue" style="height:100px;width:380px;resize: none;"  class="easyui-validatebox" data-options="validType:'length[0,256]'"   ></textarea></td>
        </tr>
        <tr>
            <td>${action.getDatagridTitle('comments')}:</td>
            <td colspan="3" ><textarea id="entity.comments" name="entity.comments" style="height:100px;width:380px;resize: none;"  class="easyui-validatebox" data-options="validType:'length[0,512]'" ></textarea></td>
        </tr>
        <tr>
            <td>${action.getDatagridTitle('priority')}:</td>
            <td colspan="2" >
            	<input type="radio" name="entity.priority" value="1" checked="checked" />${action.getDatagridTitle('priority.1')}
			    <input type="radio" name="entity.priority" value="2" />${action.getDatagridTitle('priority.2')}
			    <input type="radio" name="entity.priority" value="3" />${action.getDatagridTitle('priority.3')}
            </td>
            <td>
            	${action.getDatagridTitle('hasLeaf')}:
            	<input type="radio" name="entity.hasLeaf" value="true" checked="checked" />${action.getProperty('net.esj.background.message','bg.message.radio.yes')}
			    <input type="radio" name="entity.hasLeaf" value="false" />${action.getProperty('net.esj.background.message','bg.message.radio.no')}
            </td>
        </tr>
    </table>
	</form>
</div>
